<?php

namespace common\models;

use Yii;

/**
 * @property CreditOrder $creditOrder
 * @property BaiRongValidateLog $baiRongValidateLog
 */
class BaiRongValidateForCreditOrder extends \common\models\base\BaiRongValidateForCreditOrder
{
    /**
     * @return \yii\db\ActiveQuery
     */
    public function getCreditOrder()
    {
        return $this->hasOne(CreditOrder::className(), ['id' => 'credit_order_id']);
    }

    /**
     * @return \yii\db\ActiveQuery
     */
    public function getBaiRongValidateLog()
    {
        return $this->hasOne(BaiRongValidateLog::className(), ['id' => 'bai_rong_validate_log_id']);
    }
}
